package horncomb.bpm.process.core;

import horncomb.bpm.process.core.entity.TokenEntity;

import java.util.Date;

/**
 * @author Daniel
 */
public interface Token extends StateTransitor {
	public TokenEntity getEntity();

	public ProcessInstance getProcessInstance();

	public String getId();

	public String getName();

	public Date getEnteredDate();

	public void setEnteredDate(Date entered);

//	public StateDefinition getPrestate();
//
//	public void setPrestate(StateDefinition stateDef);

	/**
	 * {@inheritDoc}
	 */
	public StateDefinition getState();

	public void setState(StateDefinition stateDefinition);
}
